package com.smart.mac.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 工作流任务
 *
 * @author mac
 */
@Getter
@Setter
@ApiModel("我的流程vo")
public class FlowProcInstVO implements Serializable {

    private static final long serialVersionUID = 2589966457216096570L;
    @ApiModelProperty("流程id")
    private String id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("流程发起人Id")
    private String startUserId;

    @ApiModelProperty("流程定义ID")
    private String procDefId;
    @ApiModelProperty("流程定义key")
    private String procDefKey;
    @ApiModelProperty("流程定义名称")
    private String procDefName;

    @ApiModelProperty("业务key")
    private String businessKey;


    @ApiModelProperty("流程实例ID")
    private String procInsId;

    @ApiModelProperty("任务耗时")
    private Long duration;

    @ApiModelProperty("任务创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("任务完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    @ApiModelProperty("租户ID")
    private String tenantId;


}
